import React, { useState } from 'react';
import ReactDOM from 'react-dom';
function App() {
  let [name, setName] = useState("珠峰");
  return <>
    <h1>{name}</h1>
    <input type="text" value={name} onChange={(e) => {
      setName(e.target.value)
    }} />

    <input type="text" onChange={(e) => {
      setName(e.target.value)
    }} />

  </>
}

ReactDOM.render(<App />, document.getElementById('root'))